import {Pager} from '../../shared/model/pager.model';

export const FunctionPageConfig = {
  title: '功能管理',
  table: 'sysFunction',
  controller: 'sysFunction',
  search: {
    // columnCount: '3,3,6',
    columnCount: 4,
    fieldLabel: [4, 8],
    data: {},
    cols: [
      { field: 'functionName', label: '功能名称', input: 'text' },
      { field: 'functionCode', label: '功能编码', input: 'text' },
    ]
  },
  list: {
    title: '功能列表',
    data: [],
    cols: [
      { field: 'functionCode', header: '功能编码'},
      { field: 'functionName', header: '功能名称'},
      { field: 'icon', header: '图标'},
      { field: 'layout', header: '按钮位置'},
      { field: 'buttonClass', header: '按钮样式'},
      { field: 'buttonTitle', header: '按钮Title'},
      { field: 'sortNo', header: '排序'},
      { field: 'isUseUrl', header: '是否是超链接'},
      { field: 'url', header: '超链接地址'},
      { field: 'target', header: '链接目标'},
    ],
    pager: new Pager({pageSize: 10, pageLinks: 3, rowsPerPageOptions: [3, 5, 7]}),
    // loading: false
  },
  dialog: {
    add: {},
    edit: {}
  }
}
